package com.example.harmonyosproject.pojo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Friend implements Serializable {
    private Integer id;
    private Integer userId;
    private Integer friendId;
    //    state：1：正常 2：对方删除了你
    private Short state;
    private String nickname;
    private LocalDateTime createTime;
    private LocalDateTime changeTime;
    private String lastMessage;
    private String image;
    public Friend(Integer userId, Integer friendId, Short state) {
        this.userId = userId;
        this.friendId = friendId;
        this.state = state;
    }
}
